SG Window | Window Object |
PrintWindow Method |
Properties Methods Events Constants Error Codes |
Paint window to the specified device context.
object.PrintWindow(hdc As Long, flags As WndPrintFlags)
Part | Description |
object | The object is expression that evaluates to Window object |
hdc | Required. Handle of the device context to draw in. |
flags | Required. Drawing options. See remarks section for more details. |
The PrintWindow method sends WM_PRINT message to the window to request that it draw itself in the specified device context. Note that windows are not required to handle WM_PRINT message.
flags parameter can be combination of values defined in the WndPrintFlags enumeration:
Value | Meaning |
prf_CHECKVISIBLE | Draw the window only if it is visible. |
prf_CHILDREN | Draw all visible children windows. |
prf_CLIENT | Draw the client area of the window. |
prf_ERASEBKGND | Erase the background before drawing the window. |
prf_NONCLIENT | Draw the nonclient area of the window. |
prf_OWNED | Draw all owned windows. |